<template>
  <div>
    <h2>Child</h2>
    <button @click="$emit('add-count')">加1</button>
    <button @click="$emit('addn-count',2)">加n</button>
  </div>
</template>

<script>
export default {
  name: "Child",
};
</script>

<style scoped></style>
